package com.tencreat.mall.controller.app;


import com.tencreat.common.core.HttpResult;
import com.tencreat.domain.mall.MallPlatform;
import com.tencreat.service.mall.IMallPlatformService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 关于我们信息Controller
 *
 * @author tencreat
 * @date 2021-11-13
 */
@Api(tags="99-关于我们信息api")
@RestController
@RequestMapping("/api/platform")
public class MallPlatformController {
    @Autowired
    private IMallPlatformService mallPlatformService;

    /**
     * 查询关于我们信息列表
     */
    @ApiOperation(value="查询关于我们信息列表")
    @PostMapping("/list")
    public HttpResult<List<MallPlatform>> list() {
        return HttpResult.ok(mallPlatformService.list());
    }

}
